![]() |
PATH![]() |
![]() ![]() |
Obtains the region occupied by a button.
pascal OSStatus GetThemeButtonRegion (
const Rect *inBounds,
ThemeButtonKind inKind,
const ThemeButtonDrawInfo *inNewInfo,
RgnHandle outRegion);
Appearance adornments can extend beyond the basic bounding rectangle of a button and may be of variable shape. Your application may call the GetThemeButtonRegion function to obtain the exact area covered by pixels belonging to a specific button under the current theme.